package com.guang.springbootjacson.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 只针对当前的bean中的Date进行序列化
 * @author liguang
 * @date 2022/6/1 16:38
 */
@Data
public class TestOneBean {
    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date date;
}
